<template>
  <div class="Driverfiledetails">
    <mt-cell :title="title"></mt-cell>
    <mt-cell title="姓名：" :value="dataForm.licenseNo"></mt-cell>
    <mt-cell title="性别：" :value="dataForm.sex"></mt-cell>
    <mt-cell title="单位/部门：" :value="dataForm.deptName"></mt-cell>
    <mt-cell title="手机号码：" :value="dataForm.mobilePhone"></mt-cell>
    <mt-cell title="出生日期：" :value="dataForm.birthDate"></mt-cell>
    <mt-cell title="国籍：" :value="dataForm.nationality"></mt-cell>
    <mt-cell title="地区：" :value="dataForm.baseAreaName"></mt-cell>
    <mt-cell title="内场驾驶证领证日期：" :value="dataForm.cret.interDate"></mt-cell>
    <mt-cell title="内场驾驶证到期日期：" :value="dataForm.cret.endDate"></mt-cell>
    <mt-cell title="内场驾驶证检审到期日期：" :value="dataForm.cret.reviewEndDate"></mt-cell>
    <mt-cell title="准驾车型：" :value="dataForm.cret.carLevel"></mt-cell>
    <mt-cell title="控制区通行证：" :value="dataForm.cret.crlareaNo"></mt-cell>
    <mt-cell title="通行证有效期：" :value="dataForm.cret.crlareaEndDate"></mt-cell>
    <mt-cell title="社会驾驶证号：" :value="dataForm.cret.driverNo"></mt-cell>
    <mt-cell title="社会驾驶证初次领证日期：" :value="dataForm.cret.driverDate"></mt-cell>
  </div>
</template>

<script>
import { mapState, mapMutations } from "vuex";
export default {
  data() {
    return {
      data: "",
      dataForm: [],
      title: "",
      title: "档案详情"
    };
  },
  components: {},
  created() {},
  computed: {},
  mounted() {
    this.DataIndex();
    this.$store.commit("SET_USER_INFO", "驾驶员档案详情");
  },
  watch: {},
  methods: {
    DataIndex: function() {
      this.$store
        .dispatch("DriverfileDataIndex", this.$route.query.id)
        .then(data => {
          this.dataForm = data;
        });
    }
  }
};
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scpoed>
.Driverfiledetails {
  position: fixed;
  top: 0.7rem;
  left: 0;
  overflow-y: scroll;
  width: 100%;
  height: auto;
  -webkit-overflow-scrolling: touch; /*这句是为了滑动更顺畅*/
   bottom: 0;
}
.Driverfiledetails .mint-cell-title {
  text-align: left;
}
</style>
